<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MES制造执行系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 30px;
        }
        .status {
            background-color: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .nav-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }
        .nav-links a {
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .nav-links a:hover {
            background-color: #0056b3;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        .info-card {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #007bff;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🏭 MES制造执行系统</h1>
        
        <div class="status">
            ✅ 系统已成功启动并运行在GPU服务器上！
        </div>
        
        <div class="nav-links">
            <a href="/admin/">管理后台</a>
            <a href="/about/">关于系统</a>
        </div>
        
        <div class="info-grid">
            <div class="info-card">
                <h3>🖥️ 服务器信息</h3>
                <p><strong>服务器:</strong> 175.27.138.86</p>
                <p><strong>端口:</strong> 8003</p>
                <p><strong>环境:</strong> mes (conda)</p>
                <p><strong>Django版本:</strong> 4.1</p>
            </div>
            
            <div class="info-card">
                <h3>🚀 系统状态</h3>
                <p><strong>基础框架:</strong> ✅ 正常运行</p>
                <p><strong>数据库:</strong> ✅ MySQL</p>
                <p><strong>管理后台:</strong> ✅ 可访问</p>
                <p><strong>静态文件:</strong> ✅ 正常</p>
            </div>
            
            <div class="info-card">
                <h3>🔧 已修复问题</h3>
                <p>• Django版本兼容性问题</p>
                <p>• Python 2/3语法兼容性</p>
                <p>• 第三方依赖问题</p>
                <p>• 数据库配置问题</p>
            </div>
            
            <div class="info-card">
                <h3>📝 管理员登录</h3>
                <p><strong>用户名:</strong> admin</p>
                <p><strong>密码:</strong> admin123</p>
                <p><strong>访问:</strong> <a href="/admin/">/admin/</a></p>
            </div>
        </div>
        
        <div style="text-align: center; margin-top: 30px; color: #666;">
            <p>系统运行时间: {{ request.META.SERVER_NAME }}:{{ request.META.SERVER_PORT }}</p>
        </div>
    </div>
</body>
</html> 